<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/5/22
 * Time: 11:28
 */

namespace app\common\model;


use think\facade\Cache;
use think\Model;

class BusBrand extends Model
{

//    protected $insert = ['status' => 0];

    public function setStatusAttr($value){
        if ($value){
            return 1;
        } else{
            return 0;
        }
    }

    public function getIconAttr($value){
        $host = getImgUrl();
        return $host . "/" .$value;
    }
}